package cepicam.src.uc;

import cepicam.src.dao.AdresseDAO;
import cepicam.src.dao.AutoEcoleDAO;
import cepicam.src.domain.Adresse;
import cepicam.src.domain.AutoEcole;

import java.sql.SQLException;
import java.util.ArrayList;

public class GestionAdresse {

	private AdresseDAO adrdao;
	
	private static GestionAdresse instance = new GestionAdresse();
	
	private GestionAdresse() {
		adrdao = new AdresseDAO();
	}
	
	public static GestionAdresse getInstance(){
		return instance;
	}
	
	
	public Adresse creerAdresseAutoEcole(Adresse adress) throws SQLException, IllegalArgumentException {
		
		adress = adrdao.create(adress);
		
		
		return adress;
		
	}
	
	
	
}
